]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
TelepathyClient: don't emit an error if an unknown message is acknowledged
authorGiovanni Campagna <gcampagna@src.gnome.org>
Wed, 5 Sep 2012 21:07:06 +0000 (23:07 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 13 Sep 2012 20:41:17 +0000 (22:41 +0200)
pending-messages-removed is emitted for sent messages too, but we don't
include those in the _pendingMessages list. Avoid useless spew in the session
logs in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=683449

js/ui/components/telepathyClient.js

index 15cc73825e9fbd172be1c1168ef693e7716c60f7..3e9087c81184d2e965c8fba2667137ea6ac9684e 100644 (file)
@@ -746,8 +746,6 @@ const ChatSource = new Lang.Class({
             this._pendingMessages.splice(idx, 1);
             this.countUpdated();
         }
-        else
-            throw new Error('Message not in our pending list: ' + message);
     },
 
     _ackMessages: function() {